#pragma once

namespace UI
{

// Forward declarations.
class Widget;
class Button;
class Page;

class Menu
{
public:
	Menu();
	~Menu();

	void Update( float a_DT );
	void Render();
	void Delete();

	void SetPage( const char* a_Name );

	const char* GetCurrentPageName();
	
	void AddPage( UI::Page* a_Page );

	// Function used by the widgets to access m_TouchStart.
	CIwSVec2 GetTouchStart();
private:
	UI::Page* m_CurrentPage;
	std::vector<UI::Page*> m_Pages;
	CIwSVec2 m_TouchStart;
};

}